home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15667 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  730 b 

  1. Path: ari.ari.net!news-admin
  2. From: flyboy@ari.net (Nathaniel Meo)
  3. Newsgroups: comp.lang.c
  4. Subject: stdio question
  5. Date: Fri, 19 Apr 1996 07:13:11 GMT
  6. Organization: ARInternet, Corp.
  7. Message-ID: <4lc02b$7cm@ari.ari.net>
  8. NNTP-Posting-Host: flyboy.ari.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I know this may sound pretty stupid but I'm a beginner at C and I've
  12. been trying to figure this out. I am trying to make a program which
  13. reads a binary input from stdin and writes binary to stdout. Only
  14. problem is whenever I hit the 1A character (EOF) it tinks it's the end
  15. of the file and ends the loop. Is there any way that I can avoid this
  16. and still have a check for a real end of file when reading a binary
  17. file from stdin? Thanks.
  18.  
  19.